コード例 #1
0
        public IHttpActionResult AddBranches([FromBody] List <BranchDTO> branches)
        {
            if (branches == null)
            {
                return(BadRequest("BranchDTOs cannot be null"));
            }

            branches = branchSvc.AddBranches(branches);
            return(Ok(branches));
        }