public bool DeleteHamkaran(Hamkaran hamkaran) { try { db.Entry(hamkaran).State = EntityState.Deleted; return(true); } catch (Exception) { return(false); } }
public bool InsertHamkaran(Hamkaran hamkaran) { try { db.Hamkarans.Add(hamkaran); return(true); } catch (Exception) { return(false); } }