public IHttpActionResult Post() { string retVal = string.Empty; MasterUpdate objmaster = new MasterUpdate(); objmaster.DeleteGroup(Convert.ToInt32(HttpContext.Current.Request.Form["UserId"]), Convert.ToInt32(HttpContext.Current.Request.Form["GroupId"])); try { // retVal = GetSerialized(obj); retVal = ResponseSuccess.Replace("[message]", retVal); } catch (Exception ex) { retVal = ResponseErr.Replace("error occurred", "failed"); } //} return(new RawJsonActionResult(retVal)); }
public IHttpActionResult Post() { string retVal = string.Empty; MasterUpdate objmaster = new MasterUpdate(); var obj = objmaster.Login(HttpContext.Current.Request.Form["Name"], HttpContext.Current.Request.Form["Phone"]); if (obj != null) { try { retVal = GetSerialized(obj); retVal = ResponseOk.Replace("[message]", retVal); } catch (Exception ex) { retVal = ResponseErr.Replace("error occurred", "failed"); } } return(new RawJsonActionResult(retVal)); }