public IActionResult AddNewBranch([FromBody] Branches branch) { if (ModelState.IsValid) { if (manager.AddNewBranch(branch) != null) { return(Created("Branches/" + branch.BranchId, branch)); } } return(BadRequest(ModelState)); }