Example #1
0
        public void CreateActivity(Activity_BLL_DTO activity)
        {
            Activity a = Converter_BLL_DTO.ToActivity(activity, ctx);

            ctx.Activities.Add(a);
            ctx.SaveChanges();
        }
Example #2
0
 public void Subscibe(User_BLL_DTO user, Token_BLL_DTO token)
 {
     ctx.Users.FirstOrDefault(x => x.Login == token.User.Login).Folowers.Add(Converter_BLL_DTO.ToUser(user, ctx));
     ctx.SaveChanges();
 }