public string UpdateStore(string storeId, StoreObject store) { try { return _storeService.SaveStore(store); } catch (Exception ex) { throw new WebFaultException<string>(ex.Message, HttpStatusCode.InternalServerError); } }
public void SaveStore(StoreObject store) { var sql = "exec Store_SaveStore " + ((String.IsNullOrEmpty(store.Id)) ? "NULL" : store.Id) + " , '" + store.Name + "'"; SqlUtils.ExecuteDml(sql, 5); }
public string SaveStore(StoreObject store) { _storeDao.SaveStore(store); return "Magazinul a fost salvat"; }