public async Task<DocumentProperty> SetProperties(IDocumentDataService documentDataService, string languageCode) { var documentTypeId = await documentDataService.GetDocumentTypeIdByCode(Constants.DocumentType.Book); var languageId = await documentDataService.GetLanguageIdByCode(languageCode); var property = new DocumentProperty() { CanBeLent = true, MaxDaysRent = Constants.BooksPropertyForLoan.LoanDays, TypeId = documentTypeId, FinePrice = Constants.BooksPropertyForLoan.FineValue, LanguageId = languageId, CreateUser = Constants.DefaultUser, CreateDate = DateTime.Now }; return await documentDataService.AddDocumentProperties(property); }
public async Task <DocumentProperty> SetProperties(IDocumentDataService documentDataService, string languageCode) { var documentTypeId = await documentDataService.GetDocumentTypeIdByCode(Constants.DocumentType.Book); var languageId = await documentDataService.GetLanguageIdByCode(languageCode); var property = new DocumentProperty() { CanBeLent = true, MaxDaysRent = Constants.BooksPropertyForLoan.LoanDays, TypeId = documentTypeId, FinePrice = Constants.BooksPropertyForLoan.FineValue, LanguageId = languageId, CreateUser = Constants.DefaultUser, CreateDate = DateTime.Now }; return(await documentDataService.AddDocumentProperties(property)); }
public DocumentBusinessService(IDocumentDataService documentDataService, IMapper mapper, IProductDataService productDataService) { _documentDataService = documentDataService; _mapper = mapper; _productDataService = productDataService; }
public DocumentsBusinessService(IMapper mapper, IDocumentDataService documentDataService) { _mapper = mapper; _documentDataService = documentDataService; }
public DocumentService(IDocumentDataService dataService, IUserService userService) { this._dataService = dataService; this._userService = userService; }
public DocumentService(IDocumentDataService documentDataService) { this._documentDataService = documentDataService; }
public DocumentService(IDocumentDataService documentDataService) { this._documentDataService = documentDataService; }