public LicencePivot GetLicence(long id) { var item = licenceRepository.GetById((int)id); LicencePivot licencePivot = Mapper.Map <GES_Licence, LicencePivot>(item); return(licencePivot); }
public void UpdateLicence(LicencePivot licence) { licenceRepository.Update(Mapper.Map <LicencePivot, GES_Licence>(licence)); }
public void CreateLicence(LicencePivot licence) { GES_Licence item = Mapper.Map <LicencePivot, GES_Licence>(licence); licenceRepository.Add(item); }
public void DeleteLicence(LicencePivot licence) { licenceRepository.Delete(licence.Id, Mapper.Map <LicencePivot, GES_Licence>(licence)); }