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