public JsonResult CompleteJob(CompleteJobRequestModel model) { var userId = Convert.ToInt64(Session["UserId"]); if (userId != 0) { model.UserId = userId; var status = propertyService.CompleteJobRequest(model); return(Json(status, JsonRequestBehavior.AllowGet)); } else { return(Json("Session Expired", JsonRequestBehavior.AllowGet)); } }
public IHttpActionResult CompleteJobRequest(CompleteJobRequestModel model) { if (model == null) { return(this.Ok(new { status = false, message = Resource.fill_required_records, })); } var status = propertyService.CompleteJobRequest(model); return(this.Ok(new { status = status, message = propertyService.message, })); }