Ejemplo n.º 1
0
        public IActionResult PostManagement([FromBody] ManagementForCreationDTO managementFromRequest)
        {
            if (managementFromRequest == null)
            {
                return(BadRequest());
            }
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            _repo.AddManager(ModelsMapping.GetManagementEntity(managementFromRequest));
            return(Ok());
        }