コード例 #1
0
        public ActionResult Delete(Employee employee)
        {
            SqlRepository repository = new SqlRepository(_LocalFileConnectionString);

            string sql = String.Format($@"DELETE FROM Employee WHERE ID = {employee.Id}");

            repository.DeleteEmployee(sql);

            return(RedirectToAction("Index"));
        }