public async Task <ActionResult <PermissionTypeDto> > Post([FromBody] PermissionTypeDto permissionTypeDto) { var result = await _permissionTypeService.AddPermissionType(permissionTypeDto); return(Ok(result)); }
public async Task <ActionResult <PermissionTypeDto> > Post([FromBody] PermissionTypeDto permissionTypeDto) { var result = await _permissionTypeService.AddPermissionType(permissionTypeDto); return(StatusCode(result.StatusCode, result.HttpResponse)); }