Exemple #1
0
        public static async Task <AjanlatkeresDto> GetAsync(ossContext context, string sid, int key)
        {
            SessionBll.Check(context, sid);
            await CsoportDal.JogeAsync(context, JogKod.AJANLATKERES);

            var entity = await AjanlatkeresDal.GetAsync(context, key);

            return(ObjectUtils.Convert <Models.Ajanlatkeres, AjanlatkeresDto>(entity));
        }
Exemple #2
0
        public static async Task DeleteAsync(ossContext context, string sid, AjanlatkeresDto dto)
        {
            SessionBll.Check(context, sid);
            await CsoportDal.JogeAsync(context, JogKod.AJANLATKERESMOD);

            await AjanlatkeresDal.Lock(context, dto.Ajanlatkereskod, dto.Modositva);

            var entity = await AjanlatkeresDal.GetAsync(context, dto.Ajanlatkereskod);

            await AjanlatkeresDal.DeleteAsync(context, entity);
        }
Exemple #3
0
        public static async Task <int> UpdateAsync(ossContext context, string sid, AjanlatkeresDto dto)
        {
            SessionBll.Check(context, sid);
            await CsoportDal.JogeAsync(context, JogKod.AJANLATKERESMOD);

            await AjanlatkeresDal.Lock(context, dto.Ajanlatkereskod, dto.Modositva);

            var entity = await AjanlatkeresDal.GetAsync(context, dto.Ajanlatkereskod);

            ObjectUtils.Update(dto, entity);
            return(await AjanlatkeresDal.UpdateAsync(context, entity));
        }