public void AddNewService(string uniqueFileName, string userId) { try { var company = _officeManagementService.GetCompanyByUserId(userId); _companyServiceManagement.AddNewCompanyService(new CompanyService { Name = this.Name, Description = this.Description, PricingRate = this.PricingRate, ImageUrl = uniqueFileName, CompanyId = company.Id }); Notification = new NotificationModel("Success", "Company Service Added Successfully", NotificationType.Success); } catch (Exception e) { Notification = new NotificationModel("Failed", "Failed to Add Company Service", NotificationType.Fail); throw e; } }