public int Insert(Infrastructure.Data.DTOs.UserInfo contact) { var _userInfo = _OrganizationContactInfoRepository.Insert(contact); return(_userInfo); }
public Infrastructure.Data.DTOs.ModelResponse Delete(Infrastructure.Data.DTOs.UserInfo user, long id) { try { //Authorization if (user == null) { return(new ModelResponse(101)); } Repo.Delete(user.UserId, id); } catch (Exception ex) { return(new ModelResponse(ex)); } return(new ModelResponse(0)); }
public Infrastructure.Data.DTOs.ModelResponse Post(Infrastructure.Data.DTOs.UserInfo user, Infrastructure.Data.Entities.HelpfulLinkVm vm) { try { //Authorization if (user == null) { return(new ModelResponse(101)); } var ds = Repo.Post(vm, user.UserId); // if(ds==null) // { return new ModelResponse(102, ds); } return(new ModelResponse(0, ds)); } catch (Exception ex) { return(new ModelResponse(ex)); } }