Example #1
0
 public ActionResult SocialNetworkInsert(GridCommand command, SocialNetworkModel model)
 {
     socialNetworkService.Save(new SocialNetwork()
     {
         EntityId   = model.EntityId,
         EntityName = nameof(ApplicationUser),
         Name       = model.Name,
         WebAddress = model.WebAddress,
         OrderNo    = model.OrderNo,
         IsActive   = true,
     });
     return(SocialNetworkList(command, model.EntityId));
 }
Example #2
0
 public ActionResult SocialNetworkInsert(GridCommand command, SocialNetworkModel model)
 {
     socialNetworkService.Save(new SocialNetwork()
     {
         EntityId   = model.EntityId,
         EntityName = nameof(Core.Entities.TeamMember),
         Name       = model.Name,
         WebAddress = model.WebAddress,
         OrderNo    = model.OrderNo,
         IsActive   = true,
     });
     return(SocialNetworkList(command, Convert.ToInt32(model.EntityId)));
 }