public IHttpActionResult AddIS(RequestObjectISParameter param) { return(execute(delegate() { employeeObjectService.AddIS(param.EmployeeId, param.RequestObjectIS); RequestObjectDTO requestObject = objectService.Get(param.RequestObjectIS.Id); result = Json(new { success = true, requestObject = requestObject }); })); }
public IHttpActionResult AddIS(RequestObjectISDTO dto) { return(execute(delegate() { long userId = User.Identity.GetUserId <long>(); employeeObjectService.AddIS(userId, dto); result = Json(new { success = true }); })); }