public async Task <HttpResponseMessage> GetAllServiceType() { var message = CreateMessageData($"alltype"); var servicetype = await _serviceService.GetAllServiceType(); if (!servicetype.IsSuccess) { return(CreateValidationErrorResponse(message, new ValidationResult(servicetype.message))); } if (servicetype.Result == null) { return(CreateNotFoundResponse(message, Validation.FileNotFound)); } return(CreateOkResponse(message, servicetype.Result)); }