public async Task <JsonResult> CreateUser([Bind("ListingName","Id","ListingReview")]ListingProjects_ver2 obModel)
{
try
{
if (true)
{
if (obModel.ListingName == null)
{
return new JsonResult(Problem());
}
//this bytecode points to the exception --- ListingImgName is set to null
byte[] bytesListingImageName = Encoding.ASCII.GetBytes(obModel.ListingImgName);
Upload(bytesListingImageName);
_context.ListingVer2_DBTable.Add(obModel);
//more codes..
public async Task <JsonResult> CreateUser([Bind("ListingName","Id","ListingReview")]ListingProjects_ver2 obModel)
{
try
{
if (true)
{
if (obModel.ListingName == null)
{
return new JsonResult(Problem());
}
//this bytecode points to the exception --- ListingImgName is set to null
byte[] bytesListingImageName = Encoding.ASCII.GetBytes(obModel.ListingImgName);
Upload(bytesListingImageName);
_context.ListingVer2_DBTable.Add(obModel);
//more codes..