public long Registerwebsite(DtoUser dtouser) { try { long flag = 0; _daluser = new DalUser(); flag = _daluser.RegisterUser(dtouser); if (flag > 0) { var dalwebsite = new DalWebsite(); dalwebsite.RegisterWebsite(new DtoWebsite { WebSiteName = dtouser.FirstName, WebsiteUrl = dtouser.ImageUrl, UserId = flag }); } } catch (Exception ex) { ex.ToExceptionless().Submit(); } return(0); }
public long RegisterWebsite(DtoWebsite dtowebsite) { try { _dalwebsite = new DalWebsite(); return(_dalwebsite.RegisterWebsite(dtowebsite)); } catch (Exception ex) { ex.ToExceptionless().Submit(); } return(0); }