public int editAddressBook(AddressBook addressBook) { try { if (ModelState.IsValid) { if (addressBookService.Update(addressBook)) { return(1); } } } catch (Exception ex) { LogService.WriteException(ex); } return(0); }
public int editAddressBook(AddressBook addressBook) { try { if (ModelState.IsValid) { if (addressBookService.Update(addressBook)) { return(1); } } } catch (Exception ex) { LogService.WriteException(ex); } return(0); }