// ENABLE api/<controller>/5 public IHttpActionResult Enable(long id, string updatedBy) { try { _brandService.Enable(id, updatedBy); Log.Info($"{typeof(BrandController).FullName}||{UserEnvironment}||Enable record successful."); return(Content(HttpStatusCode.OK, "Brand record was enabled.")); } catch (Exception ex) { return(BadRequest()); } }