public JsonResult SetContacts(Laboru.Models.ExpertDataModel expert, List<Laboru.Models.ExpertDataModel> contacts) { try { /* foreach (var item in contacts) { System.IO.File.AppendAllText(Server.MapPath("~/Logs/Errors.txt"), "\r\n" + DateTime.Now.ToString() + " " + item.Name + " " + item.Mobile); } */ ExpertBO.GetInstance().SetExpertContacts(expert, contacts); return Json(new { success = "true" }); } catch (Exception ex) { System.IO.File.AppendAllText(Server.MapPath("~/Logs/Errors.txt"), "\r\n" + DateTime.Now.ToString() + " " + ex.Message); throw ex; } }
public JsonResult Register(Laboru.Models.ExpertDataModel expert) { return Json(ExpertBO.GetInstance().Register(expert)); }