Пример #1
0
        public async Task <BaseModel> CreateAsync([FromBody] ProjectMemberDTO model)
        {
            if (!TryValidateModel(model))
            {
                throw new Exception("400");
            }

            var id = await _projectMemberService.CreateAsync(model);

            return(IdResponse(id));
        }