Storage + Logic
This commit is contained in:
parent
83e31651fd
commit
cae6726bda
@ -0,0 +1,20 @@
|
||||
using CaseAccountingContracts.BindingModels;
|
||||
using CaseAccountingContracts.SearchModels;
|
||||
using CaseAccountingContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CaseAccountingContracts.BusinessLogicContracts
|
||||
{
|
||||
public interface ICaseLogic
|
||||
{
|
||||
List<CaseViewModel>? ReadList(CaseSearchModel? model);
|
||||
CaseViewModel? ReadElement(CaseSearchModel model);
|
||||
bool Create(CaseBindingModel model);
|
||||
bool Update(CaseBindingModel model);
|
||||
bool Delete(CaseBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
using CaseAccountingContracts.BindingModels;
|
||||
using CaseAccountingContracts.SearchModels;
|
||||
using CaseAccountingContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CaseAccountingContracts.BusinessLogicContracts
|
||||
{
|
||||
public interface IContractLogic
|
||||
{
|
||||
List<ContractViewModel>? ReadList(ContractSearchModel? model);
|
||||
ContractViewModel? ReadElement(ContractSearchModel model);
|
||||
bool Create(ContractBindingModel model);
|
||||
bool Update(ContractBindingModel model);
|
||||
bool Delete(ContractBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
using CaseAccountingContracts.BindingModels;
|
||||
using CaseAccountingContracts.SearchModels;
|
||||
using CaseAccountingContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CaseAccountingContracts.BusinessLogicContracts
|
||||
{
|
||||
public interface IDealLogic
|
||||
{
|
||||
List<DealViewModel>? ReadList(DealSearchModel? model);
|
||||
DealViewModel? ReadElement(DealSearchModel model);
|
||||
bool Create(DealBindingModel model);
|
||||
bool Update(DealBindingModel model);
|
||||
bool Delete(DealBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
using CaseAccountingContracts.BindingModels;
|
||||
using CaseAccountingContracts.SearchModels;
|
||||
using CaseAccountingContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CaseAccountingContracts.BusinessLogicContracts
|
||||
{
|
||||
public interface IHearingLogic
|
||||
{
|
||||
List<HearingViewModel>? ReadList(HearingSearchModel? model);
|
||||
HearingViewModel? ReadElement(HearingSearchModel model);
|
||||
bool Create(HearingBindingModel model);
|
||||
bool Update(HearingBindingModel model);
|
||||
bool Delete(HearingBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CaseAccountingContracts.BusinessLogicContracts
|
||||
{
|
||||
internal interface ILawyerLogic
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
using CaseAccountingContracts.BindingModels;
|
||||
using CaseAccountingContracts.SearchModels;
|
||||
using CaseAccountingContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CaseAccountingContracts.BusinessLogicContracts
|
||||
{
|
||||
public interface ISpecializationLogic
|
||||
{
|
||||
List<SpecializationViewModel>? ReadList(SpecializationSearchModel? model);
|
||||
SpecializationViewModel? ReadElement(SpecializationSearchModel model);
|
||||
bool Create(SpecializationBindingModel model);
|
||||
bool Update(SpecializationBindingModel model);
|
||||
bool Delete(SpecializationBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
using CaseAccountingContracts.BindingModels;
|
||||
using CaseAccountingContracts.SearchModels;
|
||||
using CaseAccountingContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CaseAccountingContracts.BusinessLogicContracts
|
||||
{
|
||||
public interface IUserLogic
|
||||
{
|
||||
List<UserViewModel>? ReadList(UserSearchModel? model);
|
||||
UserViewModel? ReadElement(UserSearchModel model);
|
||||
bool Create(UserBindingModel model);
|
||||
bool Update(UserBindingModel model);
|
||||
bool Delete(UserBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using CaseAccountingContracts.BindingModels;
|
||||
using CaseAccountingContracts.SearchModels;
|
||||
using CaseAccountingContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CaseAccountingContracts.StoragesContracts
|
||||
{
|
||||
public interface ICaseStorage
|
||||
{
|
||||
List<CaseViewModel> GetFullList();
|
||||
List<CaseViewModel> GetFilteredList(CaseSearchModel model);
|
||||
CaseViewModel? GetElement(CaseSearchModel model);
|
||||
CaseViewModel? Insert(CaseBindingModel model);
|
||||
CaseViewModel? Update(CaseBindingModel model);
|
||||
CaseViewModel? Delete(CaseBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using CaseAccountingContracts.BindingModels;
|
||||
using CaseAccountingContracts.SearchModels;
|
||||
using CaseAccountingContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CaseAccountingContracts.StoragesContracts
|
||||
{
|
||||
public interface IContractStorage
|
||||
{
|
||||
List<ContractViewModel> GetFullList();
|
||||
List<ContractViewModel> GetFilteredList(ContractSearchModel model);
|
||||
ContractViewModel? GetElement(ContractSearchModel model);
|
||||
ContractViewModel? Insert(ContractBindingModel model);
|
||||
ContractViewModel? Update(ContractBindingModel model);
|
||||
ContractViewModel? Delete(ContractBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using CaseAccountingContracts.BindingModels;
|
||||
using CaseAccountingContracts.SearchModels;
|
||||
using CaseAccountingContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CaseAccountingContracts.StoragesContracts
|
||||
{
|
||||
public interface IDealStorage
|
||||
{
|
||||
List<DealViewModel> GetFullList();
|
||||
List<DealViewModel> GetFilteredList(DealSearchModel model);
|
||||
DealViewModel? GetElement(DealSearchModel model);
|
||||
DealViewModel? Insert(DealBindingModel model);
|
||||
DealViewModel? Update(DealBindingModel model);
|
||||
DealViewModel? Delete(DealBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using CaseAccountingContracts.BindingModels;
|
||||
using CaseAccountingContracts.SearchModels;
|
||||
using CaseAccountingContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CaseAccountingContracts.StoragesContracts
|
||||
{
|
||||
public interface IHearingStorage
|
||||
{
|
||||
List<HearingViewModel> GetFullList();
|
||||
List<HearingViewModel> GetFilteredList(HearingSearchModel model);
|
||||
HearingViewModel? GetElement(HearingSearchModel model);
|
||||
HearingViewModel? Insert(HearingBindingModel model);
|
||||
HearingViewModel? Update(HearingBindingModel model);
|
||||
HearingViewModel? Delete(HearingBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using CaseAccountingContracts.BindingModels;
|
||||
using CaseAccountingContracts.SearchModels;
|
||||
using CaseAccountingContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CaseAccountingContracts.StoragesContracts
|
||||
{
|
||||
public interface ILawyerStorage
|
||||
{
|
||||
List<LawyerViewModel> GetFullList();
|
||||
List<LawyerViewModel> GetFilteredList(LawyerSearchModel model);
|
||||
LawyerViewModel? GetElement(LawyerSearchModel model);
|
||||
LawyerViewModel? Insert(LawyerBindingModel model);
|
||||
LawyerViewModel? Update(LawyerBindingModel model);
|
||||
LawyerViewModel? Delete(LawyerBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using CaseAccountingContracts.BindingModels;
|
||||
using CaseAccountingContracts.SearchModels;
|
||||
using CaseAccountingContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CaseAccountingContracts.StoragesContracts
|
||||
{
|
||||
public interface ISpecializationStorage
|
||||
{
|
||||
List<SpecializationViewModel> GetFullList();
|
||||
List<SpecializationViewModel> GetFilteredList(SpecializationSearchModel model);
|
||||
SpecializationViewModel? GetElement(SpecializationSearchModel model);
|
||||
SpecializationViewModel? Insert(SpecializationBindingModel model);
|
||||
SpecializationViewModel? Update(SpecializationBindingModel model);
|
||||
SpecializationViewModel? Delete(SpecializationBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using CaseAccountingContracts.BindingModels;
|
||||
using CaseAccountingContracts.SearchModels;
|
||||
using CaseAccountingContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CaseAccountingContracts.StoragesContracts
|
||||
{
|
||||
public interface IUserStorage
|
||||
{
|
||||
List<UserViewModel> GetFullList();
|
||||
List<UserViewModel> GetFilteredList(UserSearchModel model);
|
||||
UserViewModel? GetElement(UserSearchModel model);
|
||||
UserViewModel? Insert(UserBindingModel model);
|
||||
UserViewModel? Update(UserBindingModel model);
|
||||
UserViewModel? Delete(UserBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
using CaseAccountingDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CaseAccountingContracts.ViewModels
|
||||
{
|
||||
public class UserViewModel : IUserModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
[DisplayName("Логин")]
|
||||
public string Login { get; set; } = string.Empty;
|
||||
|
||||
public string Password { get; set; } = string.Empty;
|
||||
|
||||
public int RoleId { get; set; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user