public async Task <ActionResult <PicklistDepartmentLocation> > PostDepartmentLocation([FromBody] SimpleModel list) { PicklistDepartmentLocation model = Newtonsoft.Json.JsonConvert.DeserializeObject <PicklistDepartmentLocation>(list.Name); var response = this.StatusCode((int)HttpStatusCode.OK, await _service.DepartmentLocationUpdateAsync(model)); _service.Dispose(); return(response); }