public ReturnModel AddArea([FromBody] Area model) { try { _categoryBLL.AddArea(model, ref _result); _result.Data = model; _result.Description = "A new area has been successfully added."; _result.Success = true; } catch (Exception err) { _result.Success = false; _result.Description = "Unexpected error"; _result.Data = null; err.Log(); } return(_result); }