public HttpResponseMessage Delete(int Seq) { var employees = ContainerRepository.DeleteContainer(Seq); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, employees); return(response); }
public IHttpActionResult DeleteContainer(JObject jObject) { if (!string.IsNullOrEmpty(Convert.ToString(jObject["containerId"]))) { ContainerRepository.DeleteContainer(Convert.ToString(jObject["containerId"])); } return(Json(true)); }