示例#1
0
        public async Task <IActionResult> Put(int id, LeaveDtoForEdit leave)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            _response = await _repo.EditLeave(id, leave);

            return(Ok(_response));
        }