コード例 #1
0
        public async Task <IActionResult> Create([FromBody] Phongban model)
        {
            if (model == null)
            {
                return(BadRequest());
            }

            await phongBanRepository.Create(model);

            return(Ok(model));
        }
コード例 #2
0
 public bool Create(PhongBanModel model)
 {
     return(_res.Create(model));
 }