// POST: MaintenanceServiceController/Create public IActionResult Create([FromForm] CreateMaintenanceServiceDto dTO) { _MaintenanceServiceService.Create(dTO); return(Ok(GetRespons())); }
public async Task <IActionResult> Create([FromBody] MaintenanceServiceCreateDto dto) => await GetResponse(async (userId) => new ApiResponseViewModel(true, "MaintenanceService Created Successfully", await _service.Create(dto, userId)));