public void DeleteBranch(Branch Branch) { ResporitoryBranch resporitoryBranch = new ResporitoryBranch(new DAL.MyContext()); resporitoryBranch.Delete(Branch); }
public IHttpActionResult GetBranches() { ResporitoryBranch resporitoryBranch = new ResporitoryBranch(new DAL.MyContext()); return(Ok(resporitoryBranch.GetAll())); }
public void AddBranch(Branch Branch) { ResporitoryBranch resporitoryBranch = new ResporitoryBranch(new DAL.MyContext()); resporitoryBranch.Add(Branch); }